package com.ler.nacosdubbo.controller;

import com.ler.nacosdubbo.result.HttpResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lww
 * @date 2019-08-17 14:30
 */
@Api(value = "/", description = "服务状态检查")
@RequestMapping("/")
@RestController
public class WebStatus {

	@ApiOperation("服务检查")
	@GetMapping("/ok")
	public HttpResult ok() {
		return HttpResult.success("OK");
	}
}
